How to solve this pending problem